n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))

items = [-2*(a[i] - b[i]) for i in range(n)]
sums = sum([(a[i] - b[i]) for i in range(n)])
# 目标
# 选择任意数量item sum(items) + sums 最小
print()